package com.cr.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cr.business.mapper.CrPayInfoMapper;
import com.cr.business.domain.CrPayInfo;
import com.cr.business.service.ICrPayInfoService;
import com.cr.common.core.text.Convert;

/**
 * 承接支付信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-03
 */
@Service
public class CrPayInfoServiceImpl implements ICrPayInfoService 
{
    @Autowired
    private CrPayInfoMapper crPayInfoMapper;

    /**
     * 查询承接支付信息
     * 
     * @param id 承接支付信息主键
     * @return 承接支付信息
     */
    @Override
    public CrPayInfo selectCrPayInfoById(Long id)
    {
        return crPayInfoMapper.selectCrPayInfoById(id);
    }

    /**
     * 查询承接支付信息列表
     * 
     * @param crPayInfo 承接支付信息
     * @return 承接支付信息
     */
    @Override
    public List<CrPayInfo> selectCrPayInfoList(CrPayInfo crPayInfo)
    {
        return crPayInfoMapper.selectCrPayInfoList(crPayInfo);
    }

    /**
     * 新增承接支付信息
     * 
     * @param crPayInfo 承接支付信息
     * @return 结果
     */
    @Override
    public int insertCrPayInfo(CrPayInfo crPayInfo)
    {
        return crPayInfoMapper.insertCrPayInfo(crPayInfo);
    }

    /**
     * 修改承接支付信息
     * 
     * @param crPayInfo 承接支付信息
     * @return 结果
     */
    @Override
    public int updateCrPayInfo(CrPayInfo crPayInfo)
    {
        return crPayInfoMapper.updateCrPayInfo(crPayInfo);
    }

    /**
     * 批量删除承接支付信息
     * 
     * @param ids 需要删除的承接支付信息主键
     * @return 结果
     */
    @Override
    public int deleteCrPayInfoByIds(String ids)
    {
        return crPayInfoMapper.deleteCrPayInfoByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除承接支付信息信息
     * 
     * @param id 承接支付信息主键
     * @return 结果
     */
    @Override
    public int deleteCrPayInfoById(Long id)
    {
        return crPayInfoMapper.deleteCrPayInfoById(id);
    }
}
